<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="./common/mytaglibs.jsp"%>
<html>
<body>
<h2>Hello World!</h2>
<table border="1">
<c:forEach  items="${requestScope.newslist}"  var="xx"
            varStatus="status">
    <!-- 如果是偶数行，为该行换背景颜色 -->
    <tr <c:if test="${status.index % 2 == 1 }">
        style="background-color:rgb(219,241,212);"
    </c:if>>
        <td>${xx.id}</td>
        <td>${xx.title}</td>
        <td>${xx.userid}</td>
    </tr>
</c:forEach>
</table>


<c:set var="isLogin" value="${empty 'zs'}"/>
<c:if test="${isLogin}">
    …登录表单
    <form>
        <input type="text" name="x">
        <input type="password" name="passwordx">
    </form>
</c:if>
<c:if test="${! isLogin}">
    …已经登录
</c:if>






项目根${ctx}---
EL判断
===${empty " "}==
遍历对象
<c:forEach var="item" items="${list}">
    <c:out value="${item}"/>
</c:forEach>
遍历序号
<c:forEach var="i" begin="1" end="5">
 Item <c:out value="${i}"/><p>
</c:forEach>





</body>
</html>
